<html xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="utf-8">
    <title>清爽用户登录注册页面模板源码 - </title>
    <link rel="stylesheet" th:href="@{/css2/reset.css}">
    <link rel="stylesheet" th:href="@{/css2/common.css}">
</head>
<body>
<form action="/test/B" method="post" enctype="multipart/form-data">

    <input type="file" name="file">
    <input type="submit" value="上传">
</form>

<script type="text/javascript" th:src="@{/js2/jquery.min.js}"></script>
<script type="text/javascript" th:src="@{/js2/common.js}"></script>
<script type="text/javascript" th:src="@{/js/login.js}"></script>

<script>
    function formatDate(date) {
        var d = new Date(date),
            month = '' + (d.getMonth() + 1),
            day = '' + d.getDate(),
            year = '' + d.getFullYear(),
            hour = '' + d.getHours(),
            minutes = '' + d.getMinutes(),
            second = '' + d.getSeconds();

        if (month.length < 2) month = '0' + month;
        if (day.length < 2) day = '0' + day;
        if (hour.length < 2 ) hour = '0' + hour;
        if (minutes.length < 2 ) minutes = '0' + minutes;
        if (second.length < 2 ) second = '0' + second;

        return [year, month, day].join('-')+' '+[hour,minutes,second].join(':');
    }
    function c(date) {

    }
</script>
</body></html>